﻿@model AutomatedTestDataManagement.Models.Site

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Site</legend>


    <div class="display-label">
         @Html.DisplayNameFor(model => model.SiteName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SiteName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.SiteURL)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SiteURL)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.SiteDescription)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SiteDescription)
    </div>
    <div class="display-label">
        @Html.LabelFor(model => model.SitesPages)
    </div>
    <div class="display-field">
       <table>
           <tr>
               <th>Page Name</th>
               <th>Page Path</th>
           </tr>
           @foreach (var item in Model.SitesPages)
           {
               <tr>
                   <td>
                       @Html.DisplayFor(modelItem => item.Page.PageName)
                   </td>
                   <td>
                       @Html.DisplayFor(modelItem => item.Page.PagePath)
                   </td>
               </tr>
           }
        </table>
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.DataID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
